<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/header.jsp" %>
<div class="row">
	<div class="col-xs-12">
		<!-- PAGE CONTENT BEGINS -->
		<div class="row">
			<div class="col-xs-12">
				<div class="table-header">
				  用户列表
				</div>

				<!-- div.table-responsive -->

				<!-- div.dataTables_borderWrap -->
				<div>
					<table id="userTable" class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
							    <th class="text-center"><b>序号</b></th>	
								<th class="text-center"><b>用户名称</b></th>		
								<th class="text-center"><b>登陆次数</b></th>	
							</tr>
						</thead>


						<tbody>
						   <c:forEach items="${logInfos}" var="loginfo" varStatus="l">
								<tr>
									<td >${l.index+1}</td>
									<td >
									<hw:userName userId='${loginfo.userId }'/>
									</td>
									<td >${loginfo.times}</td>
							</tr>
							</c:forEach>						
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div><!-- /.col -->
</div><!-- /.row -->
<!-- page specific plugin scripts -->
<script type="text/javascript">
var dataTables;		
$(function(){
	dataTables = $("#userTable").dataTable({
	    "bAutoWidth": false,		
	    "bDestroy":true,
		"aoColumnDefs": [{"bSortable": false, "aTargets": [ 1 ]}],
		"oLanguage":oLanguage
	});
});
</script>